import request from '@/utils/request'

// 获取各部门的列表
export function companyDepartment() {
  return request({
    url: '/company/department'
  })
}

// 获取员工简易列表
export function sysUserSimple() {
  return request({
    url: '/sys/user/simple'
  })
}

// 新增员工数据
export function companyDepartmentPost(data) {
  return request({
    url: '/company/department',
    method: 'post',
    data
  })
}

// 删除部门
export function companyDepartmentDelete(id) {
  return request({
    url: `/company/department/${id}`,
    method: 'delete'
  })
}
// 修改部门详情
export function companyDepartmentPut(data) {
  return request({
    url: `/company/department/${data.id}`,
    method: 'put',
    data
  })
}
